/**
 * custommenu.css
 *
 * Styles for custom menu
 */

/* Custom menu */
.yui3-skin-sam .yui3-menu-content,
.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content,
.yui3-skin-sam #custommenu .yui3-menu-horizontal > .yui3-menu-content,
.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content,
#custommenu .yui3-menu .yui3-menu .yui3-menu-content {
    padding: 0 !important; /* Required to override several of Moodle's ID selectors. */
}

#custommenu {
    padding-left: 1.5em;
}

#custommenu .yui3-menu-label,
#custommenu .yui3-menuitem-content {
    padding: 0.7em 1em;
    margin: 0;
}

.yui3-skin-sam #custommenu .yui3-menu-horizontal .yui3-menu-content a:hover,
#custommenu .yui3-menu-horizontal li a:hover,
#custommenu .yui3-menu-horizontal li a {
    text-decoration: none;
}

#custommenu .yui3-menu-horizontal li a {
    font-weight: bold;
    border: none;
}

.yui3-skin-sam #custommenu .yui3-menu-horizontal .yui3-menu-content a:hover {
    outline: none;
}

#custommenu .yui3-menu-content,
#custommenu .yui3-menu-horizontal {
    border: 0;
}

/**
 * Custommenu background color, background image, and border.
 */
#custommenu {
    background: [[setting:custommenu_back]] [[setting:custommenuback]] repeat-x;
    border: none;
}

#custommenu li.yui3-menu-label {
    border-left: 1px solid [[setting:custommenuborder_fore]];
}

.yui3-skin-sam .yui3-menu .yui3-menu .yui3-menu-content,
#custommenu .yui3-menu .yui3-menu .yui3-menu-content {
    border: 1px solid [[setting:custommenuborder_fore]];
    padding-bottom: 0.5em;
}

.yui3-skin-sam #custommenu .yui3-menu-horizontal .yui3-menu-content .yui3-menuitem-active a {
    background: none;
}

.yui3-skin-sam #custommenu .yui3-menu-label,
.yui3-skin-sam #custommenu .yui3-menu .yui3-menu .yui3-menu-label,
.yui3-skin-sam #custommenu .yui3-menuitem-content,
.yui3-skin-sam #custommenu .yui3-menu .yui3-menu .yui3-menuitem-content {
    color: [[setting:custommenu_fore]];
}

/**
 * Background color for #custommenu submenu only.
 * Prevents overwrite of background image for #customenu itself.
 */
.yui3-skin-sam #custommenu .custom_menu_submenu .yui3-menu-label,
.yui3-skin-sam #custommenu .custom_menu_submenu .yui3-menu .yui3-menu .yui3-menu-label,
.yui3-skin-sam #custommenu .custom_menu_submenu .yui3-menuitem-content,
.yui3-skin-sam #custommenu .custom_menu_submenu .yui3-menu .yui3-menu .yui3-menuitem-content {
    background-color: [[setting:custommenu_back]];
}

.yui3-skin-sam #custommenu .yui3-menuitem-active,
.yui3-skin-sam #custommenu .yui3-menu-label:hover,
.yui3-skin-sam #custommenu .yui3-menu .yui3-menu .yui3-menu-label:hover,
.yui3-skin-sam #custommenu .yui3-menuitem-content:hover,
.yui3-skin-sam #custommenu .yui3-menu .yui3-menu .yui3-menuitem-content:hover,
.yui3-skin-sam #custommenu .yui3-menu-label-menuvisible {
    background-color: [[setting:custommenuhover_back]];
    color: [[setting:custommenuhover_fore]];
}
